package com.example.litehdfs.config;

/**
 * 返回码常量类
 *
 * @author mading
 */
public class CodeConstant {

    /**
     * -1: 失败
     */
    public static final int ERROR = -1;
    
    /**
     * 401: 重新登录
     */
    public static final int LOGIN_ERROR = 401;

    /**
     * 0: 成功
     */
    public static final int SUCCESS = 0;

    /**管理员登录token*/
    public static final String ADMIN_LOGIN_TOKEN = "login:admin:token:";
    /** 用户登录token*/
    public static final String USER_LOGIN_TOKEN = "login:user:token:";
    /** 用户登录 captcha image code*/
    public static final String USER_LOGIN_CAPTCHA_IMAGE_CODE = "login:user:captchaImage:";
    /** 用户登录 captcha sms code*/
    public static final String USER_LOGIN_CAPTCHA_SMS_CODE = "login:user:captchaSms:";
}
